package io.sdl.common.sys.service;

import io.sdl.common.service.CrudService;
import io.sdl.common.sys.dto.SdlInstitutionDTO;
import io.sdl.common.sys.entity.SdlInstitutionEntity;
import io.sdl.common.sys.vo.SdlInstitutionVo;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
import java.util.Map;

/**
 * 
 *
 * @author Dc 1211734836@qq.com
 * @since 1.0.0 2025-03-28
 */
public interface SdlInstitutionService extends CrudService<SdlInstitutionEntity, SdlInstitutionDTO> {


    //获取机构列表
    List<SdlInstitutionEntity> getList(Map<String, Object> params);

    //根据id查询机构信息
    SdlInstitutionDTO getbyId(Long id);

    //根据id修改机构信息
    int updateFromId(SdlInstitutionDTO institution);

    //保存
    int addOrganization(SdlInstitutionDTO institution);


    List<SdlInstitutionVo> findAll(Map<String, Object> params);


    Integer saveUploadedFile(MultipartFile file,Long id,String identification);

    //营业执照校验
    SdlInstitutionEntity numberCheck(String businessLicenseNumber);

}